package com.chendong.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author chendong
 * @Date 2021/8/9
 * @Description
 */
@RestController
@RequestMapping("/payment")
public class PaymentController {
    @Value("${server.port}")
    private String port;
    @RequestMapping("/{id}")
    public String getId(@PathVariable("id") Integer id){
        return "port===========>"+port+"id = " + id;
    }
}